package com.woniu.order.feign;

import com.woniu.common.utils.PageData;
import com.woniu.common.utils.ResponseData;
import com.woniu.order.dto.ZfPowerUserDto;
import com.woniu.order.dto.ZsbPowerUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "uums-server")
public interface ZsbUumsFeign {
    @PostMapping("/uumsServer/queryAll")
    public ResponseData<?> queryAll(@RequestBody PageData<ZfPowerUserDto> pageData);

    @PostMapping("/uumsServer/queryByRoleId")
    public ResponseData<?> queryByRoleId(@RequestParam("roleId") String roleId);

    @PostMapping("/uumsServer/queryByCode")
    public ZsbPowerUserDto queryByCode(@RequestParam("code") String code);


}
